@echo off
chcp 65001

echo "==========================查看分支"
echo "查看本地分支"
echo git branch 
echo "查看远程仓库分支"
echo git branch -r
echo "查看本地and远程所有分支"
echo  git branch -a


echo "==========================新建分支"
echo "新建分支 dev_zhang"
echo git branch dev_zhang

echo "新建分支的同时,切换到目标分支dev_zhang"
echo git checkout -b dev_zhang
echo "如果git的版本为 2.23+"
echo git switch -c dev_zhang

echo ""
echo "==========================切换分支"
echo git checkout dev_zhang


pause